import request from '@/utils/request'

const API = '/user/userinfo/patient'

export default {
    findList() {//数据字典列表
        return request({
            url: `${API}/all`,
            method: 'GET'
        })
    },
    save(obj) {//添加操作
        return request({
            url: `${API}/save`,
            method: 'POST',
            data: obj
        })
    },
    detail(id) {//添加操作
        return request({
            url: `${API}/detail/${id}`,
            method: 'GET'
        })
    },
    removeById(id) {//添加操作
        return request({
            url: `${API}/delete/${id}`,
            method: 'DELETE'
        })
    },
    updateById(obj) {//添加操作
        return request({
            url: `${API}/update`,
            method: 'PUT',
            data:obj
        })
    },
}
